package com.study.quiz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.study.quiz.pojo.Comment;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @author CJunGod
 * @create 2020-03-08 22:10
 **/
public interface CommentMapper extends BaseMapper<Comment> {

    @Update("update COMMENT set CONTENT_COUNT=CONTENT_COUNT +1, GMT_MODIFIED=#{gmtModified} where ID = #{commentId}")
    Integer updateComment(@Param("commentId") Long commentId, @Param("gmtModified") Long gmtModified);
}
